const path = require("path");
module.exports = {
    entry: "/src/main.js",   // 入口文件，默认是src/index.js
    output: {
        // path.resolve方法和path.join类似，也是用于拼接路径
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js'
    }
}